Skip to content

feat: implement pool cancellation feature with admin controls and related events#350

Merged
Yunusabdul38 merged 7 commits intoWeb3Novalabs:mainfrom
No-bodyq:main
Feb 23, 2026
Merged

feat: implement pool cancellation feature with admin controls and related events#350
Yunusabdul38 merged 7 commits intoWeb3Novalabs:mainfrom
No-bodyq:main

Conversation

@No-bodyq
Copy link
Contributor

Implements pool cancellation functionality allowing admins to cancel active prediction pools, freezing all betting activity and preventing new predictions from being placed.

Changes:

  • Added canceled: bool field to Pool struct
  • Implemented cancel_pool() function with admin-only authorization
  • Added PoolCanceled error type and PoolCanceledEvent
  • Prevents placing predictions on canceled pools
  • Prevents canceling already-resolved pools
  • All 26 contract tests passing

closes #309

@vercel
Copy link

vercel bot commented Feb 21, 2026

@No-bodyq is attempting to deploy a commit to the shola's projects Team on Vercel.

A member of the Team first needs to authorize it.

@No-bodyq
Copy link
Contributor Author

Kindly review @Yunusabdul38

@No-bodyq
Copy link
Contributor Author

Still waiting for a review if possible @Yunusabdul38 thank you

Copy link
Collaborator

@Yunusabdul38 Yunusabdul38 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yunusabdul38 Yunusabdul38 merged commit 7f22f78 into Web3Novalabs:main Feb 23, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Pool Cancellation Logic (Admin/Creator)

2 participants